package com.yupi.usercenter.stream.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.time.LocalDateTime;

/**
 * 完结件新增DTO
 *
 * @author liaoqingji@126.com
 * @version 1.0.0
 * @date 2020/12/28 13:41
 */
@Getter
@Setter
@ToString
public class EndPieceAddDTO {

    /**
     * 运单号
     */
    @NotEmpty(message = "运单号不能为空")
    private String waybillNo;
    /**
     * 完结件编码
     */
    @NotEmpty(message = "完结件编码不能为空")
    @Size(min = 1,max = 8,message = "完结件编码错误")
    private String endCode;
    /**
     * 来源 1、问题件 2、质量工单 3、仲裁 4、客服工单
     */
    @NotNull(message = "来源不能为空")
    private Integer source;
    /**
     * 完结时间
     */
    private LocalDateTime endTime;
    /**
     * 申报网点id
     **/
    private Integer networkId;
    /**
     * 申报网点code
     **/
    private String networkCode;
    /**
     * 申报网点name
     **/
    private String networkName;
}
